package com.demo.helloworld.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.demo.helloworld.bo.Dog;

@Repository
public interface DogDAO extends BaseMapper<Dog> {

	public List<Dog> queryDog(@Param("name") String name);

	@Select("select * from T_dog where age=#{age}")
	public List<Dog> queryDogByAge(@Param("age") int aget);

}
